package ckw.database.repositories;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import ckw.database.model.ElectionChanges;

@Transactional
public interface ElectionChangesRepository extends JpaRepository<ElectionChanges, Long> {

	ElectionChanges findByUriAndElectionIdentificationField(String uri, Long electionIdentificationField);

	List<ElectionChanges> findAllByElectionIdentificationField(Long electionIdentificationField);

}
